Skip to content

feat(dashboard): show real agent activity instead of always "Idle"#787

Open
fank wants to merge 1 commit into
mindcraft-bots:developfrom
fank:feat/dashboard-agent-status
Open

feat(dashboard): show real agent activity instead of always "Idle"#787
fank wants to merge 1 commit into
mindcraft-bots:developfrom
fank:feat/dashboard-agent-status

Conversation

@fank
Copy link
Copy Markdown

@fank fank commented Jun 5, 2026

What

The dashboard's per-agent panel showed Idle whenever no action was executing. But an agent counts as idle (!actions.executing) even while it's chatting, deciding its next move, or has its self-prompter stopped — so very different states all looked identical.

This derives a real status in getFullState() and color-codes it in the dashboard.

States

Shown When Colour
<action label> an action is executing green
Chatting with <name> in a conversation blue
Thinking self-prompter active, between actions grey
Stopped self-prompter stopped (won't act on its own) red
Idle genuinely nothing grey
image image

Why "Stopped" matters

A stopped self-prompter is a state an agent can't leave on its own (e.g. after !stfu / !endGoal). It previously looked identical to a momentary "Idle", making a silently-dormant agent hard to spot. Surfacing it in red makes that obvious at a glance.

Changes

  • src/agent/library/full_state.js — compute action.current + new action.kind from conversation / self-prompter state.
  • src/mindcraft/public/index.html — color the status line by action.kind.

Backward compatible: action.current / action.isIdle keep their meaning; action.kind is additive and the UI falls back gracefully when it's absent.

The agent panel showed "Idle" whenever no action was executing — which
also covers bots that are chatting, deciding their next move, or whose
self-prompter has stopped. getFullState() now derives a real status from
the conversation manager and self-prompter state, exposed as action.kind,
and the dashboard color-codes it.

States: Acting (action label) / Chatting with <name> / Thinking /
Stopped (self-prompter off, won't act on its own) / Idle.
Copy link
Copy Markdown
Contributor

@Sweaterdog Sweaterdog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change! Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants